<!DOCTYPE html>
<html>
<head>
    <#assign dicSelect=JspTaglibs["http://www.casic304.cn/dicSelect"] />
    <#assign secSelect=JspTaglibs["http://www.casic304.cn/secSelect"] />
    <#assign fillDept=JspTaglibs["http://www.casic304.cn/fillDept"] />
    <meta charset="utf-8">
    <title>质量技术支撑机构基本信息</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="${ctx}/layui/css/layui.css" media="all"/>
    <link rel="stylesheet" href="${ctx}/qbdmsStatic/iconfont/iconfont.css"/>
    <link rel="stylesheet" href="${ctx}/qbdmsStatic/style/qbdms.css">
    <script type="text/javascript">
        var __ctx = "${ctx}";
    </script>
</head>
<body class="listBody">
<div class="qbdms-bodyDiv">
    <div class="layui-table-view-body qbdms-add-view-body">
        <form class="formPreview layui-form" requrl="${ctx}/qbdms/wQbdQuasuporgBase/get"
              lay-filter="wQbdQuasuporgBaseDataForm">
            <div class="qbdms-formTitle">质量技术支撑机构 <i class="qbdms-returnOn closeWindow">返回</i></div>
            <!--<p class="qbdms-SubTableTitle"><span>基本信息</span><i class="qbdms-fileUpText">支持单个附件上传，附件格式：doc  docx  pdf，文件大小限制不超过100M</i></p>-->
            <div class="qbdms-formBody">
                <@fillDept.dept id="tbxx"/>
                <div class="layui-row">
                    <div class="qbdms-oneForm">
                        <label class="layui-form-label qbdms-label" title="机构名称">机构名称<span style="color: red;">*</span></label>
                        <div class="layui-input-block qbdms-input">
                            <@dicSelect.dic name="orgName" nodeKey="jgmc" search=true reqtext="机构名称是必选项" addSelectText=true verify="required"/>
                        </div>
                    </div>
                    <div class="qbdms-oneForm">
                        <label class="layui-form-label qbdms-label" title="密级">密级<span style="color: red;">*</span></label>
                        <div class="layui-input-block qbdms-input">
                            <@secSelect.sec_select data_src=1 required=true name="secret"/>
                        </div>
                    </div>
                    <div class="qbdms-oneForm">
                        <label class="layui-form-label qbdms-label" title="挂靠单位">挂靠单位<span style="color: red;">*</span></label>
                        <div class="layui-input-block qbdms-input">
                            <input type="text" name="affiliatedUnits"  placeholder="请输入" lay-verify="required" class="layui-input textInput"
                                   maxlength="33" fieldname="affiliatedUnits" lay-reqtext="挂靠单位是必填项">
                        </div>
                    </div>
                    <div class="qbdms-oneForm">
                        <label class="layui-form-label qbdms-label" title="批复时间">批复时间<span style="color: red;">*</span></label>
                        <div class="layui-input-block qbdms-input">
                            <input type="text" name="replyTime"  placeholder="请输入" lay-verify="required" readonly
                                   class="layui-input time-init dateTimeFiled date" maxlength="50" fieldname="replyTime" lay-reqtext="批复时间是必填项">
                        </div>
                    </div>
                    <div class="qbdms-oneForm">
                        <label class="layui-form-label qbdms-label" title="批复文号">批复文号</label>
                        <div class="layui-input-block qbdms-input">
                            <input type="text" name="replyNo"  placeholder="请输入"
                                   class="layui-input textInput" maxlength="33" fieldname="replyNo">
                        </div>
                    </div>
                    <div class="qbdms-oneForm">
                        <label class="layui-form-label qbdms-label" title="挂牌情况">挂牌情况</label>
                        <div class="layui-input-block qbdms-input">
                            <input type="text" name="listing"  placeholder="请输入"
                                   class="layui-input textInput"
                                   maxlength="33" fieldname="listing">
                        </div>
                    </div>
                    <div class="qbdms-oneForm">
                        <label class="layui-form-label qbdms-label" title="挂牌单位">挂牌单位</label>
                        <div class="layui-input-block qbdms-input">
                            <input type="text" name="listingUnit"  placeholder="请输入"
                                   class="layui-input textInput"
                                   maxlength="33" fieldname="listingUnit">
                        </div>
                    </div>
                    <div class="qbdms-oneForm">
                        <label class="layui-form-label qbdms-label" title="联系人">联系人</label>
                        <div class="layui-input-block qbdms-input">
                            <input type="text" name="contacts"  placeholder="请输入"
                                   class="layui-input textInput"
                                   maxlength="33" fieldname="contacts">
                        </div>
                    </div>
                    <div class="qbdms-oneForm">
                        <label class="layui-form-label qbdms-label" title="联系方式">联系方式</label>
                        <div class="layui-input-block qbdms-input">
                            <input type="text" name="contactsInfo"  placeholder="请输入"  lay-verify="information"
                                   class="layui-input textInput"
                                   maxlength="100" fieldname="contactsInfo">
                        </div>
                    </div>
                    <div class="qbdms-textarea">
                        <label class="layui-form-label qbdms-label">批复文件</label>
                        <div class="layui-input-block qbdms-input">
                            <div class="doNotDelThisDiv layui-input-inline">
                                <div class="uploadFileCont">
                                    <input type="button"
                                            class="layui-btn iconfont iconupload fileUpload qbdms-fileUp"
                                            id="replyDocfileList"
                                           value="上传附件" />

                                    <i class="qbdms-fileUpText">支持单个附件上传，附件格式：doc  docx  pdf，文件大小限制不超过100M</i>
                                    <input type="text" id="replyDoc" class="uploadInput"
                                           name="replyDoc" fieldname="replyDoc" style="display: none">
                                    <div class="uploadFileList" fileUploadName="replyDoc"></div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <p class="qbdms-SubTableTitle"><span>资质认定</span><i class="qbdms-fileUpText">支持单个附件上传，附件格式：doc  docx  pdf，文件大小限制不超过100M</i></p>
            <div class="qbdms-tableDiv">
                <a modetype="2" class="addFormTr1"><i class="layui-icon layui-icon-addition"></i>新增</a>
                <table class="qbdms-temTable wQbdQuasuporgAffirmList subFormTable"
                       id="wQbdQuasuporgAffirmList" style="min-width: 999px;">
                    <tbody>
                    <tr class="temSpace qbdms-temTable-thead">
                        <td class="temSpace" style="width: 32px;">
                            序号
                        </td>
                        <td class="temSpace subDialogShowState" style="width: 90px;">
                            年度<span style="color: red;">*</span>
                        </td>
                        <td class="temSpace subDialogShowState" style="width: 170px;">
                            认定阶段<span style="color: red;">*</span>
                        </td>
                        <td class="temSpace subDialogShowState" style="width: 170px;">
                            认定环节<span style="color: red;">*</span>
                        </td>
                        <td class="temSpace subDialogShowState" style="width: 170px;">
                            报告名称<span style="color: red;">*</span>
                        </td>
                        <td class="temSpace subDialogShowState">
                            文件<span style="color: red;">*</span>
                        </td>
                        <td class="temSpace qbdms-subOptState">
                            管理
                        </td>
                    </tr>
                    <tr class="temSpace subContTem">
                        <td class="temSpace qbdms-temTable-seNumber">
                            <input name="s:wQbdQuasuporgAffirmList:affirmSort"  style="display: none">
                            <div class="temTag">0</div>
                        </td>
                        <td class="temSpace qbdms-temTable-td">
                            <input name="s:wQbdQuasuporgAffirmList:affirmId" style="display: none">
                            <input type="text" placeholder="请输入" requiredFlag="required"
                                   class="layui-input year dateTimeFiled" readonly lay-reqtext="年度是必填项"
                                   name="s:wQbdQuasuporgAffirmList:affirmYear">
                        </td>
                        <td class="temSpace qbdms-temTable-td">
                            <@dicSelect.dic name="s:wQbdQuasuporgAffirmList:affirmStage" reqtext="认定阶段是必填项" nodeKey="rdjd" filter="rdjd" search=true addSelectText=true z_verify="required"/>
                        </td>

                        <td class="temSpace qbdms-temTable-td">
                            <select name="s:wQbdQuasuporgAffirmList:affirmLink" requiredFlag="required" lay-reqtext="认定环节是必填项">
                            </select>
                        </td>
                        <td class="temSpace qbdms-temTable-td">
                            <input type="text" title="请输入报告名称"
                                   lay-reqtext="报告名称是必填项"
                                   requiredFlag="required"
                                   class="layui-input"
                                   name="s:wQbdQuasuporgAffirmList:affirmReportName"
                                   maxlength="150">
                        </td>
                        <td class="temSpace qbdms-temTable-td">
                            <div class="uploadFileCont">
                                <input type="button" class="layui-btn iconfont iconupload fileUpload qbdms-fileUp"
                                       value="上传附件" requiredFlag="fileRequired"/>
                                <input type="text" class="uploadInput"
                                       requiredFlag="fileRequired"
                                       name="s:wQbdQuasuporgAffirmList:affirmFile"
                                       fieldname="s:wQbdQuasuporgAffirmList:affirmFile"
                                       lay-reqtext="附件是必填项"
                                       style="display:none">
                                <div class="uploadFileList"
                                     fileUploadName="s:wQbdQuasuporgAffirmList:affirmFile"></div>
                            </div>
                        </td>
                        <td class="temSpace qbdms-subOptState">
                            <a class="subDeleteTr RightBtn">删除</a>
                        </td>
                    </tr>
                    </tbody>
                </table>
            </div>
            <p class="qbdms-SubTableTitle"><span>监督检查</span><i class="qbdms-fileUpText">支持单个附件上传，附件格式：doc  docx    pdf，文件大小限制不超过100M</i></p>
            <div class="qbdms-tableDiv">
                <a modetype="2" class="addFormTr1"><i class="layui-icon layui-icon-addition"></i>新增</a>
                <table class="qbdms-temTable wQbdQuasuporgInspectList subFormTable"
                       id="wQbdQuasuporgInspectList" style="min-width: 1399px">
                    <tbody>
                    <tr class="temSpace qbdms-temTable-thead">
                        <td class="temSpace" style="width: 32px;">
                            序号
                        </td>
                        <td class="temSpace subDialogShowState" style="width: 90px;">
                            年度<span style="color: red;">*</span>
                        </td>
                        <td class="temSpace subDialogShowState" style="width: 110px;">
                            检查阶段<span style="color: red;">*</span>
                        </td>
                        <td class="temSpace subDialogShowState" style="width: 110px;">
                            认定环节<span style="color: red;">*</span>
                        </td>
                        <td class="temSpace subDialogShowState" style="width: 110px;">
                            问题<span  style="color: red;">*</span>
                        </td>
                        <td class="temSpace subDialogShowState" style="width: 110px;">
                            措施<span style="color: red;">*</span>
                        </td>
                        <td class="temSpace subDialogShowState" style="width: 110px;">
                            闭环情况<span style="color: red;">*</span>
                        </td>
                        <td class="temSpace subDialogShowState" style="width: 110px;">
                            结论<span  style="color: red;">*</span>
                        </td>
                        <td class="temSpace subDialogShowState" style="width: 110px;">
                            证明材料名称<span  style="color: red;">*</span>
                        </td>
                        <td class="temSpace subDialogShowState">
                            文件<span style="color: red;">*</span>
                        </td>
                        <td class="temSpace qbdms-subOptState">
                            管理
                        </td>
                    </tr>
                    <tr class="temSpace subContTem">
                        <td class="temSpace qbdms-temTable-seNumber">
                            <input name="s:wQbdQuasuporgInspectList:inspectSort"  style="display: none">
                            <div class="temTag">0</div>
                        </td>
                        <td class="temSpace qbdms-temTable-td">
                            <input name="s:wQbdQuasuporgInspectList:inspectId" style="display: none">
                            <input type="text" placeholder="请输入" requiredFlag="required"
                                   class="layui-input year dateTimeFiled" readonly lay-reqtext="年度是必填项"
                                   name="s:wQbdQuasuporgInspectList:inspectYear">
                        </td>
                        <td class="temSpace qbdms-temTable-td">
                            <@dicSelect.dic name="s:wQbdQuasuporgInspectList:inspectStage" reqtext="检查阶段是必填项" nodeKey="jcjd" search=true addSelectText=true z_verify="required"/>
                        </td>
                        <td class="temSpace qbdms-temTable-td">
                            <@dicSelect.dic name="s:wQbdQuasuporgInspectList:inspectLink" reqtext="认定环节是必填项" nodeKey="jchj" search=true addSelectText=true z_verify="required"/>
                        </td>
                        <td class="temSpace qbdms-temTable-td">
                            <input type="text" title="请输入问题"
                                   lay-reqtext="问题是必填项"
                                   requiredFlag="required"
                                   class="layui-input"
                                   name="s:wQbdQuasuporgInspectList:inspectProblem"
                                   maxlength="333">
                        </td>
                        <td class="temSpace qbdms-temTable-td">
                            <input type="text" title="请输入措施"
                                   lay-reqtext="措施是必填项"
                                   requiredFlag="required"
                                   class="layui-input"
                                   name="s:wQbdQuasuporgInspectList:inspectMeasures"
                                   maxlength="333">
                        </td>
                        <td class="temSpace qbdms-temTable-td">
                            <input type="text" title="请输入闭环情况"
                                   lay-reqtext="闭环情况是必填项"
                                   requiredFlag="required"
                                   class="layui-input"
                                   name="s:wQbdQuasuporgInspectList:inspectCloseStage"
                                   maxlength="333">
                        </td>
                        <td class="temSpace qbdms-temTable-td">
                            <@dicSelect.dic name="s:wQbdQuasuporgInspectList:inspectConclusion" reqtext="结论是必填项" nodeKey="jl" search=true addSelectText=true z_verify="required"/>
                        </td>
                        <td class="temSpace qbdms-temTable-td">
                            <input type="text" title="请输入证明材料名称"
                                   requiredFlag="required"
                                   lay-reqtext="证明材料名称是必填项"
                                   class="layui-input"
                                   name="s:wQbdQuasuporgInspectList:inspectMaterialName"
                                   maxlength="66">
                        </td>
                        <td class="temSpace qbdms-temTable-td">
                            <div class="uploadFileCont">
                                <input type="button" class="layui-btn iconfont iconupload fileUpload qbdms-fileUp"
                                        value="上传附件" requiredFlag="fileRequired"/>
                                <input type="text" class="uploadInput"
                                       requiredFlag="fileRequired"
                                       lay-reqtext="文件是必填项"
                                       name="s:wQbdQuasuporgInspectList:inspectFile"
                                       fieldname="s:wQbdQuasuporgInspectList:inspectFile"
                                       style="display:none">
                                <div class="uploadFileList"
                                     fileUploadName="s:wQbdQuasuporgInspectList:inspectFile"></div>
                            </div>
                        </td>
                        <td class="temSpace qbdms-subOptState">
                            <a class="subDeleteTr RightBtn">删除</a>
                        </td>
                    </tr>
                    </tbody>
                </table>
            </div>
            <p class="qbdms-SubTableTitle"><span>会议</span><i class="qbdms-fileUpText">支持单个附件上传，附件格式：doc  docx  pdf，文件大小限制不超过100M</i></p>
            <div class="qbdms-tableDiv">
                <a modetype="2" class="addFormTr1"><i class="layui-icon layui-icon-addition"></i>新增</a>
                <table class="qbdms-temTable wQbdQuasuporgMeetingList subFormTable"
                       style="min-width: 1599px"
                       id="wQbdQuasuporgMeetingList">
                    <tbody>
                    <tr class="temSpace qbdms-temTable-thead">
                        <td class="temSpace" style="width: 32px;">
                            序号
                        </td>
                        <td class="temSpace subDialogShowState" style="width: 90px;">
                            年度<span
                                style="color: red;">*</span>
                        </td>
                        <td class="temSpace subDialogShowState" style="width: 110px;">
                            会议时间<span
                                style="color: red;">*</span>
                        </td>

                        <td class="temSpace subDialogShowState" style="width: 110px;">
                            会议名称<span
                                style="color: red;">*</span>
                        </td>
                        <td class="temSpace subDialogShowState" style="width: 110px;">
                            会议地点<span
                                style="color: red;">*</span>
                        </td>
                        <td class="temSpace subDialogShowState" style="width: 110px;">
                            参会人员<span
                                style="color: red;">*</span>
                        </td>
                        <td class="temSpace subDialogShowState" style="width: 110px;">
                            会议文件名称<span
                                style="color: red;">*</span>
                        </td>
                        <td class="temSpace subDialogShowState">
                            文件<span
                                style="color: red;">*</span>
                        </td>
                        <td class="temSpace subDialogShowState">
                            会议纪要<span
                                style="color: red;">*</span>
                        </td>
                        <td class="temSpace qbdms-subOptState">
                            管理
                        </td>
                    </tr>
                    <tr class="temSpace subContTem">
                        <td class="temSpace qbdms-temTable-seNumber">
                            <input name="s:wQbdQuasuporgMeetingList:meetingSort"  style="display: none">
                            <div class="temTag">0</div>
                        </td>
                        <td class="temSpace qbdms-temTable-td">
                            <input name="s:wQbdQuasuporgMeetingList:meetingId" style="display: none">
                            <input type="text" placeholder="请输入" requiredFlag="required"
                                   class="layui-input year dateTimeFiled" readonly lay-reqtext="年度是必填项"
                                   name="s:wQbdQuasuporgMeetingList:meetingYear">
                        </td>
                        <td class="temSpace qbdms-temTable-td">
                            <input type="text" name="s:wQbdQuasuporgMeetingList:meetingTime"  placeholder="请输入" requiredFlag="required"
                                   class="layui-input dateTimeFiled input-right date" readonly lay-reqtext="会议时间是必填项"
                                   maxlength="50">
                        </td>
                        <td class="temSpace qbdms-temTable-td">
                            <input type="text" title="请输入会议名称"
                                   requiredFlag="required"
                                   class="layui-input"
                                   lay-reqtext="会议名称是必填项"
                                   name="s:wQbdQuasuporgMeetingList:meetingName"
                                   maxlength="66">
                        </td>
                        <td class="temSpace qbdms-temTable-td">
                            <input type="text" title="请输入会议地点"
                                   lay-reqtext="会议地点是必填项"
                                   requiredFlag="required"
                                   class="layui-input"
                                   name="s:wQbdQuasuporgMeetingList:meetingPlace"
                                   maxlength="166">
                        </td>
                        <td class="temSpace qbdms-temTable-td">
                            <input type="text" title="请输入参会人员"
                                   requiredFlag="required"
                                   lay-reqtext="参会人员是必填项"
                                   class="layui-input"
                                   name="s:wQbdQuasuporgMeetingList:meetingPerson"
                                   maxlength="333">
                        </td>
                        <td class="temSpace qbdms-temTable-td">
                            <input type="text" title="请输入会议文件名"
                                   lay-reqtext="会议文件名是必填项"
                                   requiredFlag="required"
                                   class="layui-input"
                                   name="s:wQbdQuasuporgMeetingList:meetingFileName"
                                   maxlength="66">
                        </td>
                        <td class="temSpace qbdms-temTable-td">
                            <div class="uploadFileCont">
                                <input type="button" class="layui-btn iconfont iconupload fileUpload qbdms-fileUp"
                                        value="上传附件" requiredFlag="fileRequired"/>
                                <input type="text" class="uploadInput"
                                       lay-reqtext="文件是必填项"
                                       requiredFlag="fileRequired"
                                       name="s:wQbdQuasuporgMeetingList:meetingFile"
                                       fieldname="s:wQbdQuasuporgMeetingList:meetingFile"
                                       style="display:none">
                                <div class="uploadFileList"
                                     fileUploadName="s:wQbdQuasuporgMeetingList:meetingFile"></div>
                            </div>
                        </td>
                        <td class="temSpace qbdms-temTable-td">
                            <div class="uploadFileCont">
                                <input type="button" class="layui-btn iconfont iconupload fileUpload qbdms-fileUp"
                                       value="上传附件" requiredFlag="fileRequired"/>
                                <input type="text" class="uploadInput"
                                       requiredFlag="fileRequired"
                                       lay-reqtext="会议纪要是必填项"
                                       name="s:wQbdQuasuporgMeetingList:meetingMinutes"
                                       fieldname="s:wQbdQuasuporgMeetingList:meetingMinutes"
                                       style="display:none">
                                <div class="uploadFileList"
                                     fileUploadName="s:wQbdQuasuporgMeetingList:meetingMinutes"></div>
                            </div>
                        </td>
                        <td class="temSpace qbdms-subOptState">
                            <a class="subDeleteTr RightBtn">删除</a>
                        </td>
                    </tr>
                    </tbody>
                </table>
            </div>
            <p class="qbdms-SubTableTitle"><span>工作总结</span><i class="qbdms-fileUpText">支持单个附件上传，附件格式：doc  docx  pdf，文件大小限制不超过100M</i></p>
            <div class="qbdms-tableDiv">
                <a modetype="2" class="addFormTr1"
                   id="add"><i class="layui-icon layui-icon-addition"></i>新增</a>
                <table class="qbdms-temTable wQbdQuasuporgSummaryList subFormTable"
                       id="wQbdQuasuporgSummaryList" style="min-width: 999px;">
                    <tbody>
                    <tr class="temSpace qbdms-temTable-thead">
                        <td class="temSpace" style="width: 32px;">
                            序号
                        </td>
                        <td class="temSpace subDialogShowState" style="width: 90px;">
                            年度<span
                                style="color: red;">*</span>
                        </td>
                        <td class="temSpace subDialogShowState" style="width: 200px;">
                            工作总结名称<span
                                style="color: red;">*</span>
                        </td>
                        <td class="temSpace subDialogShowState">
                            文件<span
                                style="color: red;">*</span>
                        </td>
                        <td class="temSpace qbdms-subOptState">
                            管理
                        </td>
                    </tr>
                    <tr class="temSpace subContTem">
                        <td class="temSpace qbdms-temTable-seNumber">
                            <input name="s:wQbdQuasuporgSummaryList:summarySort"  style="display: none">
                            <div class="temTag">0</div>
                        </td>
                        <td class="temSpace qbdms-temTable-td">
                            <input name="s:wQbdQuasuporgSummaryList:summaryId" style="display: none">
                            <input type="text" placeholder="请输入" requiredFlag="required"
                                   class="layui-input year dateTimeFiled" readonly lay-reqtext="年度是必填项"
                                   name="s:wQbdQuasuporgSummaryList:summaryYear">
                        </td>
                        <td class="temSpace qbdms-temTable-td">
                            <input type="text" title="请输入工作总结名称"
                                   requiredFlag="required"
                                   lay-reqtext="工作总结名称是必填项"
                                   class="layui-input"
                                   name="s:wQbdQuasuporgSummaryList:summaryName"
                                   maxlength="66">
                        </td>
                        <td class="temSpace qbdms-temTable-td">
                            <div class="uploadFileCont">
                                <input type="button" class="layui-btn iconfont iconupload fileUpload qbdms-fileUp"
                                       value="上传附件" requiredFlag="fileRequired"/>
                                <input type="text" class="uploadInput"
                                       requiredFlag="fileRequired"
                                       name="s:wQbdQuasuporgSummaryList:summaryFile"
                                       fieldname="s:wQbdQuasuporgSummaryList:summaryFile"
                                       lay-reqtext="文件是必填项"
                                       style="display:none">
                                <div class="uploadFileList"
                                     fileUploadName="s:wQbdQuasuporgSummaryList:summaryFile"></div>
                            </div>
                        </td>
                        <td class="temSpace qbdms-subOptState">
                            <a class="subDeleteTr RightBtn">删除</a>
                        </td>
                    </tr>
                    </tbody>
                </table>
            </div>
            <p class="qbdms-SubTableTitle"><span>规章制度</span><i class="qbdms-fileUpText">支持单个附件上传，附件格式：doc  docx  pdf，文件大小限制不超过100M</i></p>
            <div class="qbdms-tableDiv">
                <a modetype="2" class="addFormTr1"><i class="layui-icon layui-icon-addition"></i>新增</a>
                <table class="qbdms-temTable wQbdQuasuporgSystemList subFormTable"
                       style="min-width: 999px"
                       id="wQbdQuasuporgSystemList">
                    <tbody>
                    <tr class="temSpace qbdms-temTable-thead">
                        <td class="temSpace" style="width: 32px;">
                            序号
                        </td>
                        <td class="temSpace subDialogShowState" style="width: 90px;">
                            年度<span
                                style="color: red;">*</span>
                        </td>
                        <td class="temSpace subDialogShowState" style="width: 200px;">
                            类别<span
                                style="color: red;">*</span>
                        </td>
                        <td class="temSpace subDialogShowState" style="width: 200px;">
                            制度名称<span
                                style="color: red;">*</span>
                        </td>
                        <td class="temSpace subDialogShowState">
                            文件<span
                                style="color: red;">*</span>
                        </td>
                        <td class="temSpace qbdms-subOptState">
                            管理
                        </td>
                    </tr>
                    <tr class="temSpace subContTem">
                        <td class="temSpace qbdms-temTable-seNumber">
                            <input name="s:wQbdQuasuporgSystemList:systemSort"  style="display: none">
                            <div class="temTag">0</div>
                        </td>
                        <td class="temSpace qbdms-temTable-td">
                            <input name="s:wQbdQuasuporgSystemList:systemId" style="display: none">
                            <input type="text" placeholder="请输入" requiredFlag="required"
                                   class="layui-input year dateTimeFiled" readonly lay-reqtext="年度是必填项"
                                   name="s:wQbdQuasuporgSystemList:systemYear">
                        </td>
                        <td class="temSpace qbdms-temTable-td">
                            <@dicSelect.dic name="s:wQbdQuasuporgSystemList:systemType" reqtext="类别是必填项" nodeKey="jglb" search=true addSelectText=true z_verify="required"/>
                        </td>
                        <td class="temSpace qbdms-temTable-td">
                            <input type="text" title="请输入制度名称"
                                   requiredFlag="required"
                                   lay-reqtext="制度名称是必填项"
                                   class="layui-input"
                                   name="s:wQbdQuasuporgSystemList:systemName"
                                   maxlength="66">
                        </td>
                        <td class="temSpace qbdms-temTable-td">
                            <div class="uploadFileCont">
                                <input type="button" class="layui-btn iconfont iconupload fileUpload qbdms-fileUp"
                                       value="上传附件" requiredFlag="fileRequired"/>
                                <input type="text" class="uploadInput"
                                       requiredFlag="fileRequired"
                                       lay-reqtext="文件是必填项"
                                       name="s:wQbdQuasuporgSystemList:systemFile"
                                       fieldname="s:wQbdQuasuporgSystemList:systemFile"
                                       style="display:none">
                                <div class="uploadFileList"
                                     fileUploadName="s:wQbdQuasuporgSystemList:systemFile"></div>
                            </div>
                        </td>
                        <td class="temSpace qbdms-subOptState">
                            <a class="subDeleteTr RightBtn">删除</a>
                        </td>
                    </tr>
                    </tbody>
                </table>
            </div>
            <div class="layui-hide">
                <input type="text" name="id" placeholder="请输入"  class="layui-input "
                       maxlength="50" fieldname="id">
            </div>
            <div class="layui-form-item btnformItem">
                <p>
                    <span id="hideAndShow" style="display: none;">
                        <a lay-submit lay-filter="wQbdQuasuporgBase" class="layui-btn btn-n privateSubmit qbdms-oneBtn"
                           requrl="${ctx}/qbdms/wQbdQuasuporgBase/save">提交</a>
                    </span>
                    <button type="reset" id="closeWindow" style="margin-left: 10px;"
                            class="layui-btn layui-btn-sm btn-save qbdms-oneBtnLine">取消
                    </button>
                </p>
            </div>
        </form>
    </div>
</div>

<script src="${ctx}/qbdmsStatic/public/configFile.js"></script>
<script src="${ctx}/layui/layui.js"></script>

<script>
    layui.config({
        base: serverPath.qbdmsPath + staticPath.qbdmsPath //静态资源所在路径
    }).extend({
        index: 'lib/index' //主入口模块
    }).use(['index','setter','common','laydate','jquery','propsHandle','publicMethods','qbdmsForm'], function () {
        var laydate = layui.laydate;
        var $ = layui.jquery;
        var publicMethods = layui.publicMethods;
        var setter = layui.setter;
        var form = layui.qbdmsForm;
        var common = layui.common;
        var propsHandle = layui.propsHandle;
        var secSelect = '<@secSelect.sec_select data_src=1 hasBlank=false/>';

        var defProps = {
                //viewMould: 'form/formDef/view/formDesign/moulds/', // 组件模块 存放文件 *****
                viewMould: 'moulds/', // 组件模块 存放文件 *****
                selectorBtn: '.selectorBtn'
            },
            temQuery = new propsHandle();  // 实例化模板功能部分
        temQuery.initTem({
            selectorBtn: defProps.selectorBtn,
            selectorTemPath: setter.views + defProps.viewMould
        });

        form.verify({
           /* fileRequired: [/[\S]+/, "没有上传对应附件"],*/
            information:function (value,item) {
                if(value && !new RegExp(/^(1\d{10}|0\d{2,3}-?\d{7,8})?$/).test(value)){
                    return common.verifyTitleAdd(item)+"请输入正确的联系方式！";
                }
            }
        });
        $(".subContTem").hide();
        var mainParam = {acceptMime:'${selectType}',exts:'${uploadType}',upLoadSize:102400,secSelect:secSelect,isSub:false};
        common.uploadfun(".fileUpload",mainParam);
        new propsHandle().initSubEvent("", serverPath, setter);
        common.updateForm({
            name:'wQbdQuasuporgBaseDataForm',
            idValue:"${id}",
            primary:"id",
            beforeSubmitFun: function (data) {

                //- 附件密级不能高于表单密级 开始 ------------------------------------------------------
                var selectMaxVal = 0;
                var formSecretVal = $("[name='secret']").val();
                $(".fileSecLevel select").each(function () {
                    selectMaxVal = selectMaxVal >= $(this).val() ? selectMaxVal : $(this).val();
                });

                if (selectMaxVal > formSecretVal) {
                    layer.msg('附件密级不能高于表单密级。', {icon: 5});
                    return false;
                }
                //- 附件密级不能高于表单密级 结束 ------------------------------------------------------
                $(".uploadFileList").each(function (i,v) {
                    common.constructFileStr(v)
                });
                //- 子表数据 开始 ------------------------------------------------------
                var sub = [];
                $('table.subFormTable').each(function () {
                    var table = {
                        tableName: $(this).attr('class').split(" ")[1],
                        fields: []
                    };
                    $(this).find('tr.temSpace').each(function (i, item) {    /*修复需要提交隐藏的行数据的bug*/
                        if (i > 1) {
                            var row = {};
                            var objRow = $(this);
                            $("input:text[name^='s:'],input[type='hidden'][name^='s:'],textarea[name^='s:'],select[name^='s:'],ul[name^='m:']", objRow).each(function () {
                                var name = $(this).attr('name').replace(/.*:/, '');
                                row[name] = $(this).val();
                            });
                            row["sort"] = i - 1;
                            table.fields.push(row);
                        }
                    });
                    data.field[table.tableName] = table.fields;
                });
                //- 子表数据 结束 ------------------------------------------------------

                var files=[];
                //整理上传附件的隐藏域，将提交的字符串转为json对象
                $(".uploadInput").each(function () {
                    var uploadName = $(this).attr("name");
                    if (!$(this).val()) {
                        return;
                    }
                    data.field[uploadName] = eval($(this).val());
                    files=files.concat(eval($(this).val()));
                });

                return common.setFileLevel(files);
            },
            getCallback: function (data) {
                $("#tbxx").html("<span class='qbdms-TBinformation'>填报信息:</span><span class='qbdms-TBinformationText'>【" + data.data.filldept + " | " + data.data.fillman + " | " + data.data.filldate + "】</span>");
                var fileSec = '<div class="fileSecLevel layui-input-inline">' + secSelect + "</div>";
                //-修改页面 初始化附件组件 开始 ------------------------------------------
                $('.uploadFileList').each(function () {
                    var fileUploadName = $(this).attr("fileUploadName");
                    var jsonFile = data.data[fileUploadName];
                    var files = eval(jsonFile);
                    if (files) {
                        for (var i = 0; i < files.length; i++) {
                            var fileLevel = files[i].fileLevel;
                            var fileLevelText = files[i].fileLevelText;
                            var fileSec = '<div class="fileSecLevel fileSecXg layui-input-inline">' + '<@secSelect.sec_select data_src=1 hasBlank=false/>' + "</div>";
                            var newStr = '<span class="file-id" style="margin-right: 20px;" fileId=' + files[i].fileId + ' fileLevelText="' + fileLevelText + '">' + fileSec + '<span class="file-name" title="点击下载文件" onclick="downFile(this)"><i class="iconfont data-iconcommon_fujian" style="margin-right: 5px"></i>' + files[i].fileName + '</span><i class="iconfont data-iconcommon_close deleteFile" ></i></span>';
                            $(this).html(newStr);
                            $(this).find("select:last").val(fileLevel);
                            //$(this).find("select:last").attr("disabled", "disabled");
                        }
                    }
                });
                $('table.subFormTable').each(function () {
                    var table = {
                        tableName: $(this).attr('class').split(" ")[1],
                        fields: []
                    };
                    table.fields = data.data[table.tableName];
                    for (var i = 0, len = table.fields.length; i < len; i++) {
                        var dataRow = table.fields[i];
                        $("." + table.tableName).prev().click();
                        //这里有子表表头占一行，子表隐藏行占一行，所以取需要赋值的行时，需要temp=i+2
                        var domRow = $(this).find("tr.temSpace:eq(" + (i * 1 + 2) + ")");
                        var affirmLinkVal = "";
                        $.each(dataRow, function (j, val) {
                            var domItem = domRow.find("[name$='" + j + "']");
                            if (domItem) {
                                if(domItem.hasClass("date")){
                                    if(val){
                                        var curDate = new Date(val);
                                        val = curDate.getFullYear()+"-"+publicMethods.parTime(curDate.getMonth() + 1)+"-"+publicMethods.parTime(curDate.getDate());
                                    }
                                }
                                domItem.val(val);
                            }else{
                                domItem.val(val);
                            }
                            if(j === 'affirmStage'){
                                appendSel(domItem,val);
                            }
                            if(j === 'affirmLink'){
                                affirmLinkVal = val;
                            }
                        });
                        if(affirmLinkVal){
                            var domItem = domRow.find("[name$='affirmLink']");
                            $(domItem).val(affirmLinkVal);
                        }
                    }
                });
                $('.subFormTable').each(function (index0, element0) {
                    var id = $(this).attr('id');
                    $(this).find("tr").each(function(index1,element1){
                        if (index1 === 0 || index1 === 1) {
                            return true;
                        }
                        $(this).find(".uploadFileList").each(function (index2, element2) {
                            var fileUploadName = $(this).attr("fileUploadName");
                            var text = fileUploadName.split(":");
                            var jsonFile = "data.data." + id + "[" + (index1 * 1 - 2) + "]" + "." + text[2];
                            var files = eval(eval(jsonFile));
                            if (files) {
                                for (var i = 0; i < files.length; i++) {
                                    var fileLevel = files[i].fileLevel;
                                    var fileLevelText = files[i].fileLevelText;
                                    var fileSec = '<div class="fileSecLevel fileSecXg layui-input-inline" style="float: right;margin: 8px 0 0;">' + '<@secSelect.sec_select data_src=1 hasBlank=false/>' + "</div>";
                                    var newStr = '<span class="file-id" fileId=' + files[i].fileId + ' fileLevelText="' + fileLevelText + '"><span class="file-name" title="点击下载文件" onclick="downFile(this)"><i class="iconfont data-iconcommon_fujian" style="margin-right: 5px"></i>' + files[i].fileName + '</span>' + '<i class="iconfont data-iconcommon_close deleteFile" ></i>'+ fileSec + '</span>';
                                    $(this).html(newStr);
                                    $(this).siblings("input[type='button']").hide();
                                    $(this).find("select:last").val(fileLevel);
                                }
                            }
                        });
                    });
                });
            },
            updateCallback:function (data) {
                if (publicMethods._filterRecord(data)) {
                    if($(".privateSubmit")){
                        $(".privateSubmit").attr("disabled",false).css("pointer-events","auto");
                    }

                   layer.alert(publicMethods.confirmStyle(data.msg),{title: false,skin: 'confirm-class'}, function (index) {
                        layer.close(index);
                        window.location.href = serverPath.qbdmsPath + '/qbdms/wQbdQuasuporgBase/view/list';
                    });
                } else {
                    layer.alert(publicMethods.confirmStyle(data.msg),{title: false,skin: 'confirm-class'});
                }
                return false;
            }
        });
//==================================================渲染子表联动select
        var ccrds = '${ccrds}'?JSON.parse('${ccrds}'):"";
        var rdyqs = '${rdyqs}'?JSON.parse('${rdyqs}'):"";
        //select选择事件
        form.on('select(rdjd)', function(data){
            appendSel(data.elem,data.value);
        });
        function appendSel(el , value){
            var htm = "<option name=''></option>";
            if(value === '初次认定'){
                ccrds && $.each(ccrds,function(i,n){
                    htm += "<option name='"+n+"'>"+n+"</option>"
                });
            }else if(value === '认定要求'){
                rdyqs && $.each(rdyqs,function(i,n){
                    htm += "<option name='"+n+"'>"+n+"</option>"
                });
            }
            $(el).closest("td").next("td").find("select[name='s:wQbdQuasuporgAffirmList:affirmLink']").html(htm);
            form.render('select')
        }

//=====================================================子表开始
        $(document).on('click', '.addFormTr1', function () {
            var count = 1;
            var modetype = $(this).attr('modetype'),
                copyObj = $(this).parent().children('.subFormTable'),
                copyHtm = copyObj.find('tr').eq(1),
                id = copyObj.attr("id");
            if (modetype === '2') {
                //在这里做一个转换，控制子表隐藏行的必填
                var copyHtmlStr = copyHtm.html();
                copyHtmlStr = copyHtmlStr.replace(/requiredflag/g, "lay-verify");
                // 表格
                copyObj.append('<tr class="temSpace">' + copyHtmlStr + '</tr>');
                // copyObj.append('<tr class="temSpace">' + copyHtm.html() + '</tr>');
                var trArr = copyObj.find('tr');
                trArr.eq(trArr.length - 1).find('td').eq(0).find('.temTag').html(trArr.length - 2);
                trArr.eq(trArr.length - 1).find('td').eq(0).find('.temTag').prev("input").val(trArr.length - 2);
                trArr.eq(trArr.length - 1).find('.fileUpload').each(function(){
                    while ($("#"+id + count).length>0){
                        count+=1;
                    }
                    $(this).attr("id", id + count);
                    var param = {acceptMime:'${selectType}',exts:'${uploadType}',upLoadSize:102400,secSelect:secSelect,isSub:true};
                    common.uploadfun("#" + id + count,param,function(res,cur){
                        var item = cur.item;
                        var selectName = item.siblings(".uploadInput").attr("name");
                        var fileOne = res.data.fileList[0];
                        if(selectName.indexOf("wQbdQuasuporgInspectList")!=-1){
                            $(item).closest("td").prev().find("input").val(fileOne.fileName + '.' + fileOne.extName);
                        }else
                        if(selectName.indexOf("wQbdQuasuporgSummaryList")!=-1){
                            $(item).closest("td").prev().find("input").val(fileOne.fileName + '.' + fileOne.extName);
                        }
                    });
                });
            }
            dateInit(".dateTimeFiled.year","year");
            dateInit(".dateTimeFiled.date","date");
            form.render();
            publicMethods.bottomFixd();
        });

        dateInit(".dateTimeFiled.date","date");
        //下载附件
        window.downFile = function (obj) {
            var fileId = $(obj).parents("span").attr("fileId");
            window.location.href = serverPath.qbdmsPath + setter.extendLinkPath + "attachFile/download?fileId=" + fileId;
        };

        // 删除
        $(document).on('click', '.deleteFile', function () {
            $(this).parent().parent().siblings("button").show()
            $(this).parent().remove();
            $(".uploadFileList").each(function (i,v) {
                common.constructFileStr(v)
            });
        });
        //日期初始化
        function dateInit(selector,type) {
            lay(selector).each(function () {
                laydate.render({
                    elem: this
                    , type: type
                    , trigger: 'click'
                });
            });
            $(selector).removeAttr("lay-key");
        }
        //关闭当前页面
        $("#closeWindow,.closeWindow").click(function () {
            window.location.href = serverPath.qbdmsPath + '/qbdms/wQbdQuasuporgBase/view/list';
        });
        var runId = "${runId}";
        if(runId == null || runId == ''){
            $("#hideAndShow").show();
        }
        publicMethods.bottomFixd()
        form.on('select', function(data){
            publicMethods.bottomFixd()
        });
    });
</script>
</body>
</html>